package com.zslh.service;

import java.util.List;

import com.zslh.dao.TaskDao;
import com.zslh.entity.Task;

public class TaskService {
	TaskDao dao = new TaskDao();
	
	
	public void saveTask(Task t) {
		dao.saveTask(t);
		
	}

	public List<Task> findByIdForTaskList(String empId) {
		
		return dao.findByIdForTasKList(empId);
	}
	
	public Task findByIdForTask(String taskId) {
		
		return dao.findByIdForTasK(taskId);
	}

	public void saveEdit(Task t, String taskId) {
		
		dao.update(t,taskId);
	}
}
